
//
//  SYCollectionViewCell.m
//  SYCollectionviewTest
//
//  Created by apple on 2019/1/4.
//  Copyright © 2019 ZMX. All rights reserved.
//

#import "SYFromCollectionViewCell.h"

@interface SYFromCollectionViewCell ()
{
    
    
}

@end


@implementation SYFromCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _contentL = [[UILabel alloc] initWithFrame:CGRectMake(0, 0,70, 30)];
        _contentL.numberOfLines = 0;
        _contentL.textAlignment = NSTextAlignmentCenter;
        _contentL.backgroundColor = UIColor.cyanColor;
        
        
        _contentL.text = @"90加快快快扩\n回家看看";
        
        [self addSubview:_contentL];
        
        
        
    }
    return self;
}


- (void)setIsChaoChu:(BOOL)isChaoChu{
    _isChaoChu = isChaoChu;
    
    if (_isChaoChu) {
        _contentL.frame = CGRectMake(0, 0,100, 150);
    }
    else{
        
        _contentL.frame = CGRectMake(0, 0,100, 100);
    }
    
    
}



@end
